package com.approval.dto;

import lombok.Data;
import java.util.List;

/**
 * 角色权限预览响应DTO
 */
@Data
public class RolePermissionPreviewResponse {
    
    private Long roleId;
    private String roleCode;
    private String roleName;
    private Long userCount;
    
    // 菜单权限
    private List<PermissionResponse> menuPermissions;
    
    // 操作权限
    private List<PermissionResponse> operationPermissions;
    
    // 数据权限
    private List<PermissionResponse> dataPermissions;
    
    // 所有权限（扁平化）
    private List<String> allPermissions;
    
    // Getter and Setter methods
    public Long getRoleId() {
        return roleId;
    }
    
    public void setRoleId(Long roleId) {
        this.roleId = roleId;
    }
    
    public String getRoleCode() {
        return roleCode;
    }
    
    public void setRoleCode(String roleCode) {
        this.roleCode = roleCode;
    }
    
    public String getRoleName() {
        return roleName;
    }
    
    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }
    
    public List<PermissionResponse> getMenuPermissions() {
        return menuPermissions;
    }
    
    public void setMenuPermissions(List<PermissionResponse> menuPermissions) {
        this.menuPermissions = menuPermissions;
    }
    
    public List<PermissionResponse> getOperationPermissions() {
        return operationPermissions;
    }
    
    public void setOperationPermissions(List<PermissionResponse> operationPermissions) {
        this.operationPermissions = operationPermissions;
    }
    
    public List<PermissionResponse> getDataPermissions() {
        return dataPermissions;
    }
    
    public void setDataPermissions(List<PermissionResponse> dataPermissions) {
        this.dataPermissions = dataPermissions;
    }
    
    public List<String> getAllPermissions() {
        return allPermissions;
    }
    
    public void setAllPermissions(List<String> allPermissions) {
        this.allPermissions = allPermissions;
    }
}
